Passing a string array to another function